import { Entity, Column, PrimaryGeneratedColumn,ManyToMany, ManyToOne, JoinColumn, OneToOne , BaseEntity } from 'typeorm';
import { TypeEnum } from './platform.enum';

@Entity('platform')
export class Platform extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'platform' })
  platform: string;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'type' })
  type: TypeEnum;

  @Column({ name: 'ic_group' })
  ic_group: number;

  @Column({ name: 'create_time' })
  create_time: Date;
}
